import request from '@/utils/request'

// 项目列表
export function ProjectList(query) {
  return request({
    url: '/module/project/list',
    method: 'get',
    params: query
  })
}



// 查询项目信息
export function getProjectInfo(id) {
  return request({
    url: '/module/project/' + id,
    method: 'get'
  })
}

// 新增产品
export function addProject(data) {
  return request({
    url: '/module/project/add',
    method: 'post',
    data: data
  })
}

// 修改产品
export function editProject(data) {
  return request({
    url: '/module/project/update',
    method: 'put',
    data: data
  })
}

// 删除产品
export function delProject(id) {
  return request({
    url: '/module/project/remove/' + id,
    method: 'delete'
  })
}
